import request from '@/utils/request'

/**
 *  用户认证授权相关接口
 */


export function loginByUserNameAndPassword(username, password) {
  return request({
    url: '/auth/login',
    method: 'post',
    data: {
      account: username,
      password: password
    },
    params: {
      login_type: 'account_password'
    }
  })
}
